package com.smallrig.mall.template;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import com.smallrig.mall.template.entity.TOrder;
import com.smallrig.mall.template.service.ITOrderService;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.transaction.jta.JtaAutoConfiguration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

@MapperScan("com.smallrig.mall.template.mapper")
@SpringBootApplication(exclude = {DruidDataSourceAutoConfigure.class, JtaAutoConfiguration.class})
@EnableScheduling
@EnableAspectJAutoProxy(exposeProxy = true)
public class TemplateApplication   {

    public static void main(String[] args) {
        SpringApplication.run(TemplateApplication.class, args);
    }

}
